<template>
  <svg class="iconfont-svg" :style="iconStyle" aria-hidden="true">
    <use :xlink:href="`#${icon || ''}`" />
  </svg>
</template>

<script>
import './symbol/iconfont.js'

export default {
  name: 'IconFontSymbol',
  props: ['iconStyle', 'icon']
}
</script>
<style scoped>
.iconfont-svg{
  display: inline;
}
</style>
